package com.example.demo3;

public class Test3 {
    public static void main(String[] args) {
        one one = new one();
        one.F("dsadaw");

        two<Integer> integertwo = new two<>();
        integertwo.F(145);
    }
}
interface Fan<T>{
void F(T t);
}
class one implements Fan<String>{

    @Override
    public void F(String s) {
        System.out.println("s = 不是泛型" + s);
    }
}
class two<T> implements Fan<T>{

    @Override
    public void F(T t) {
        System.out.println("t = 是泛型" + t);
    }
}